package cn.wizzer.app.sys.modules.models;

import cn.wizzer.framework.base.model.BaseModel;
import lombok.Data;
import org.nutz.dao.entity.annotation.*;
import org.nutz.dao.interceptor.annotation.PrevInsert;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.List;

/**
 * 支付方式管理
 */
@Data
@Table("sys_pay_way")
public class SysPayWay extends BaseModel implements Serializable {
    @Column
    @Name
    @Comment("ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    @PrevInsert(uu32 = true)
    private String id;


    /**
     * 币种ID
     */
    @Column
    @Comment("币种ID")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String currencyId;


    /**
     * 支付方式
     */
    @Column
    @Comment("支付方式：京都泰国/壹钱包/平台手动/USDT")
    @ColDefine(type = ColType.VARCHAR, width = 32)
    private String payWay;

    @Column
    @Comment("最小充值金额")
    @ColDefine(type = ColType.FLOAT, width = 16, precision = 6)
    private BigDecimal minRechargeAmount;

    @Column
    @Comment("最大充值金额")
    @ColDefine(type = ColType.FLOAT, width = 16, precision = 6)
    private BigDecimal maxRechargeAmount;

    @Column
    @Comment("最小提现金额")
    @ColDefine(type = ColType.FLOAT, width = 16, precision = 6)
    private BigDecimal minWithDrawAmount;

    @Column
    @Comment("最大提现金额")
    @ColDefine(type = ColType.FLOAT, width = 16, precision = 6)
    private BigDecimal maxWithDrawAmount;
    /**
     * 序号
     */
    @Column
    @Comment("排列序号")
    @ColDefine(type = ColType.INT, width = 4)
    private int sort;


    @Column
    @Comment("支付方式logo")
    @ColDefine(type = ColType.VARCHAR, width = 50)
    private String logo;

    /**
     * 状态
     */
    @Column
    @Comment("是否禁用0否1是")
    @ColDefine(type = ColType.BOOLEAN)
    private boolean disabled;


    /**
     * 支持的银行卡集合
     */
    private List banks;
}
